using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class TRT_DiagnosisMap : EntityTypeConfiguration<TRT_Diagnosis>
    {
        public TRT_DiagnosisMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            // Table & Column Mappings
            this.ToTable("TRT_Diagnosis");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.Diagnosis).HasColumnName("Diagnosis");
            this.Property(t => t.Opertbl_ID).HasColumnName("Opertbl_ID");
        }
    }
}
